package View;

import java.awt.Color;
import java.awt.Component;
import java.util.ArrayList;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.BoxLayout;
import javax.swing.table.DefaultTableCellRenderer;

import Controller.ViewSwitcher;
import Custom.Button;




@SuppressWarnings("serial")
public class PanelTransactie_MainTransacties extends JPanel{
	
	private int hoogte = 0;
	private int hoeveelheid;

	private static PanelTransactie_MainTransacties single;
	
	private Color backcolor = new Color(239, 238, 237);
	private Color titleColor = new Color(85, 85, 85);
	private JButton cancelButton = new JButton("Cancel");
	private JButton NewButton = new JButton("New Transaction");
	
	
	
	public PanelTransactie_MainTransacties() {
		
	
		setBounds(140, 0, 860, 725);
		setBackground(backcolor);
		
			setLayout(null);
			
		  
			

		
		
		
		
	    cancelButton.setActionCommand("transaction");
	    cancelButton.addActionListener(new ViewSwitcher());
	    cancelButton.setBounds(100, 550, 150, 30);
	    
	    NewButton.setActionCommand("NewTransaction");
	    NewButton.addActionListener(new ViewSwitcher());
	    NewButton.setBounds(300, 550, 150, 30);
	    
		
		
		
		
		add(cancelButton);
		add(NewButton);
	}
		
	public static PanelTransactie_MainTransacties getInstance() {
		if(single == null){
			single = new PanelTransactie_MainTransacties();
		}
		return single;
	}
	
	public static void selfDestroy(){
		single = null;
	}

	public int getHoogte() {
		return hoogte;
	}

	public void setHoogte(int hoogte) {
		this.hoogte = hoogte;
	}





	
}
